package org.aeon.gamechatnest.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 *
 * @TableName user
 */
@Schema(description = "用户实体", name = "UserLoginDto")
@Data
@TableName("user")
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    @Schema(description = "用户id", name = "userId")
    @TableId
    private Long userId;
    /**
     * 昵称
     */
    @Schema(description = "昵称", name = "nickname")
    private String nickname;
    /**
     * 密码
     */
    @Schema(description = "密码", name = "password")
    private String password;
    /**
     * 手机号
     */
    @Schema(description = "手机号", name = "phone")
    private String phone;
    /**
     * 邮箱号
     */
    @Schema(description = "邮箱号", name = "email")
    private String email;
    /**
     * 头像路径
     */
    @Schema(description = "头像路径", name = "headImage")
    private String headImage;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间", name = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 是否删除
     */
    @Schema(description = "是否删除", name = "isDelete", hidden = true)
    private Integer isDelete;
}
